package com.yxw.springmvc.userBehavior.convert;

import com.yxw.springmvc.userBehavior.model.BasicCust;
import com.yxw.springmvc.userBehavior.request.BasicCustAddRequest;
import org.springframework.stereotype.Service;

/**
 * Created by hp on 2016/10/10.
 */
@Service
public class BasicCustConvert {
    public BasicCust convert(BasicCustAddRequest request){
        BasicCust cust = new BasicCust();
        cust.setAddress(request.getAddress());
        cust.setCustName(request.getCustName());
        cust.setMail(request.getMail());
        cust.setMobile(request.getMobile());
        return cust;
    }
}
